package com.explment.lens.utils.secureKey;

import com.explment.lens.entity.securityuser.LoginUser;
import org.springframework.security.core.context.SecurityContextHolder;

/**
 * 获取当前登录用户信息工具类
 */
public class SecurityContextUtils {

    public static String getUsername() {
        return  SecurityContextHolder.getContext().getAuthentication().getName();
    }
}
